Ext.define('CMS.views.main.totalBill.personalGrid', {
    extend: 'Ext.grid.Panel',
    xtype: 'personal-grid',

    requires: [
       // 'CMS.store.totalBill.personalStore'
        'CMS.store.totalBill.totalBill'
    ],

    store: {
        type: 'totalBillStore'
    },

    selModel: {
        selType: 'checkboxmodel',
        mode: 'MULTI'
    },

    columns: [
        {
            xtype:'rownumberer',
            header:'行号',
            renderer: function(value,metadata,record,rowIndex){
                return (rowIndex+1);
            },
            width:60,
            align: 'center',
        },
        {
            text: '消费时间',
            dataIndex: 'consumptionTime',
            flex: 1,
            minWidth:150,
            align: 'center'
        },
        {
            text: '消费类型',
            dataIndex: 'consumptionType',
            flex: 1,
            minWidth:135,
            align: 'center'
        },
        {
            text: '商品',
            dataIndex: 'goods',
            flex: 1,
            minWidth:160,
            align: 'center'
        },
        {
            text: '原价',
            dataIndex: 'originalPrice',
            flex: 2,
            minWidth:135,
            align: 'center'
        },
        {
            text: '折扣',
            dataIndex: 'discount',
            flex: 2,
            minWidth:135,
            align: 'center'
        },
        {
            text: '总价',
            dataIndex: 'amountPrice',
            flex: 2,
            minWidth:135,
            align: 'center'
        }
    ]
});